package com.guyaogg.gulimall.auth.feign;

import com.guyaogg.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 顾遥
 */
@FeignClient("gulimall-third-party")
public interface ThirdPartFeignService {

    /**
     * 远程调用 sms 短信发送
     *
     * @param phone 手机号
     * @param code  验证码
     * @return 是否调用成功
     */
    @GetMapping("/sms/sendCode")
    R sendCode(@RequestParam("phone") String phone,
               @RequestParam("code") String code);
}
